<div id="pan"><?php echo $html->link(__('Home',true), '/'); ?> &gt; <strong><?php echo __('Login',true); ?></strong></div>
<h2><?php echo __('Login',true); ?></h2>
<?php if ($session->check('Message.auth')) $session->flash('auth'); ?>

<?php echo $form->create('User',array('action' => 'login','dojoType'=>'dijit.form.Form'));?>
<dl>
	<dt><?php echo __('UserName'); ?></dt>
	<dd><?php
		echo $form->text('username',array(
			'size'=>'12',
			'maxlength'=>'12',
			'dojoType'=>'dijit.form.ValidationTextBox',
			'RegExp'=>'[ -~]{4,12}',
			'required'=>'true',
			'style'=>'width:150px;ime-mode:disabled;',
			'invalidMessage'=>sprintf(__('Please enter the %s less than between %d and %d alphanumeric characters.',true),__('Username',true),'4','12'),
			'onfocus'=>'this.imeMode=\'disabled\';'
		));
	?></dd>
	<dt><?php echo __('Password'); ?></dt>
	<dd><?php
		echo $form->password('password',array(
			'size'=>'8',
			'maxlength'=>'8',
			'dojoType'=>'dijit.form.ValidationTextBox',
			'RegExp'=>'[ -~]{4,8}',
			'required'=>'true',
			'style'=>'width:80px;ime-mode:disabled;',
			'invalidMessage'=>sprintf(__('Please enter the %s less than between %d and %d alphanumeric characters.',true),__('Password',true),'4','8'),
			'onfocus'=>'this.imeMode=\'disabled\';'
		));?>
		<input type="checkbox" name="data[User][cookie]" dojoType="dijit.form.CheckBox" id="UserCookie" /><label for="UserCookie"><?php echo __('Remember',true); ?></label>
	</dd>
</dl>
<p>
	<button type="submit" dojoType="dijit.form.Button" iconclass="LoreleiIcon LoreleiIconOk"><?php echo __('Login',true) ?></button>
	<button type="reset" dojoType="dijit.form.Button" iconclass="LoreleiIcon LoreleiIconReset"><?php echo __('Reset',true) ?></button>&nbsp;
	<button id="cancel" dojoType="dijit.form.Button" iconclass="LoreleiIcon LoreleiIconCancel"><?php echo __('Cancel',true) ?></button>
</p>
<?php echo $form->end();?>

<?php $this->addScript($javascript->codeBlock('
dojo.require("dojo.parser");
dojo.require("dijit.form.Button");
dojo.require("dijit.form.Form");
dojo.require("dijit.form.TextBox");
dojo.require("dijit.form.ValidationTextBox");
dojo.require("dijit.form.CheckBox");
dojo.require("lorelei.users");
lorelei.users.login();
',array('inline' => false)));
$head->meta(array('name'=>'robots','content'=>'noindex,nofollow'));
 ?>